/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Homework6;

import java.awt.*;

/**
 *
 * @author Jakim
 */
class TextEditorMenu extends MenuBar{
    //private Fields

    private MenuFile _menuFile;
    private MenuEdit _menuEdit;
    private MenuHelp _menuHelp;

    // Constructor
    private TextEditorMenu(){
        this._menuFile = new MenuFile();
        this._menuEdit = new MenuEdit();
        this._menuHelp = new MenuHelp();

        this.add(this._menuFile);
        this.add(this._menuEdit);
        this.add(this._menuHelp);
    }

    // Getter
    public MenuEdit getMenuEdit() {
        return _menuEdit;
    }

    public MenuFile getMenuFile() {
        return _menuFile;
    }

    public MenuHelp getMenuHelp() {
        return _menuHelp;
    }

    // SingleTon
    public static final TextEditorMenu MenuBar = new TextEditorMenu();
}
